package com.woniu.user.feign;

import com.woniu.common.pojo.dto.user.IncomeDto;
import com.woniu.common.pojo.dto.user.PayDto;
import com.woniu.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "user-server")
public interface UserControllerFeign {
    //支付接口
    @PostMapping("/user/pay-order/pay")
    public Result pay(@RequestBody PayDto payDto);
    @PostMapping("/user/user-info/income")
    public Result incomeByUser(@RequestBody IncomeDto dto);
}
